# -*- mode: snippet -*-
# name: subfigure
# key: subfig
# group: environments
# expand-env: ((yas-indent-line 'fixed))
# --
\begin{figure}[htbp]
  \centering

  \begin{subfigure}[b]{0.4\textwidth}
    \centering
    \includegraphics[width=\textwidth]{figures/${1:figname}}
    \caption{subfig caption}
    \label{subfig:subfig-label}
  \end{subfigure}
  ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill, \\\, etc.
  \begin{subfigure}[b]{0.4\textwidth}
    \centering
    \includegraphics[width=\textwidth]{figures/${2:figname}}
    \caption{subfig caption}
    \label{subfig:subfig-label}
  \end{subfigure}

  \caption{$0}
  \label{fig:${3:label}}
\end{figure}
